//
//  JMJRootNavigationController.m
//  JinMaJiaDemo
//
//  Created by GripMeMory on 15/9/8.
//  Copyright (c) 2015年 GripMeMory. All rights reserved.
//

#import "JMJRootNavigationController.h"

@interface JMJRootNavigationController ()

@end

@implementation JMJRootNavigationController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self applyBarTintColorToTheNavigationBar];
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

#pragma mark - NavigationBar Function
- (void)applyBarTintColorToTheNavigationBar{
    self.navigationBar.barTintColor = RGB_COLOR(@"#d91f00");
    self.navigationBar.tintColor = [UIColor whiteColor];
    NSDictionary *dict = @{NSForegroundColorAttributeName:[UIColor whiteColor]};
    self.navigationBar.titleTextAttributes = dict;
    self.toolbar.barTintColor = [UIColor whiteColor];
    self.toolbar.translucent = NO;
}

@end
